package com.wind.taobao.api.sns.picture.rest
{
	import com.wind.taobao.api.sns.convert.AlbumConvert;
	import com.wind.taobao.core.webservice.TaobaoListResponse;
	import com.wind.taobao.core.webservice.TaobaoResponse;

	import mx.collections.ArrayCollection;

	[Deprecated(replacement="com.wind.taobao.api.jianghu.rest.JianghuAlbumsGetAlbumListResponse", since="2.0")]
	/**
	 * taobao.sns.pictures.getAlbums Response
	 * @author fxy
	 *
	 */
	public class SNSPicturesGetAlbumsResponse extends TaobaoListResponse
	{
		public var albums:ArrayCollection;

		public function SNSPicturesGetAlbumsResponse(response:TaobaoResponse=null)
		{
			super(response);
			initAlbums();
		}

		private function initAlbums():void
		{
			if (body != null && this.isSuccess)
			{
				if (body["rsp"].hasOwnProperty("albums"))
					albums=AlbumConvert.convertAlbums(body["rsp"]["albums"]);
			}
		}
	}
}